package com.itheima.api.collection.demo01;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo01 {

    public static void main(String[] args) {

        Collection<String> col = new ArrayList<String>();

        col.add("hello");
        col.add("world");
        col.add("java");

        System.out.println(col);

        col.remove("java");

        System.out.println(col);

        System.out.println(col.isEmpty());

        col.clear();

        System.out.println(col.isEmpty());

    }

}
